/*
 * @Author: mhb
 * @Date: 2021-11-23 11:08:06
 * @LastEditTime: 2023-03-01 16:00:46
 * @LastEditors: wuyue
 * @Description: 事项模块路由
 * @FilePath: \cscec-pms-admin\src\config\routers\matters.js
 */
import { RouteView } from '@/layouts'

export default {
    path: '/matters',
    redirect: '/matters/list/todo',
    name: 'matters',
    component: RouteView,
    meta: {
        title: '事项',
        icon: '../../src/assets/building.png'
    },
    children: [
        {
            path: '/matters/list',
            name: 'mattersList',
            component: RouteView,
            meta: {
                title: '事项管理'
            },
            redirect: '/matters/list/todo',
            children: [
                {
                    path: '/cscec8b',
                    meta: {
                        title: '提示'
                    },
                    component: () => import('@/views/extraView/index.vue')
                },
                {
                    path: '/matters/list/todo',
                    name: 'mattersListTodo',
                    meta: {
                        title: '待办事项'
                    },
                    component: () => import('@/views/matters/backLog'),
                    icon: 'none'
                },
                {
                    path: '/matters/list/solicitingOpinions',
                    name: 'solicitingOpinions',
                    meta: {
                        title: '征询意见',
                        noTab: true
                    },
                    component: () => import('@/views/matters/solicitingOpinions/index'),
                    icon: 'none'
                },
                {
                    path: '/matters/list/done',
                    name: 'mattersListDone',
                    meta: {
                        title: '已办事项'
                    },
                    component: () => import('@/views/matters/alreadyBackLog'),
                    icon: 'none'
                },
                {
                    path: '/meLaunch/list/done',
                    name: 'meLaunchListDone',
                    meta: {
                        title: '我发起的'
                    },
                    component: () => import('@/views/matters/meLaunch/index'),
                    icon: 'none'
                },
                {
                    path: '/matters/list/fanruan',
                    name: 'fanruan',
                    meta: {
                        title: '帆软'
                    },
                    component: () => import('@/views/matters/fanruan/index'),
                    icon: 'none'
                },
                {
                    path: '/matters/allocate/allocateHandle',
                    name: 'allocateHandle',
                    meta: {
                        title: '调拨处理'
                    },
                    component: () => import('@/views/matters/allocate/allocateHandle'),
                    icon: 'none'
                },
                {
                    path: '/matters/allocate/transferOutConfirm',
                    name: 'transferOutConfirm',
                    meta: {
                        title: '调出确认'
                    },
                    component: () => import('@/views/matters/allocate/transferOutConfirm'),
                    icon: 'none'
                },
                {
                    path: '/matters/allocate/transferInConfirm',
                    name: 'transferInConfirm',
                    meta: {
                        title: '调入确认'
                    },
                    component: () => import('@/views/matters/allocate/transferInConfirm'),
                    icon: 'none'
                },
                {
                    path: '/matters/todoList/affirmReturn',
                    name: 'confirmationOfReturn',
                    meta: {
                        title: '归还确认'
                    },
                    component: () => import('@/views/matters/todoList/affirmReturn'),
                    icon: 'none'
                },
            ]
        },
        {
            path: '/matters/news',
            name: 'mattersNews',
            component: RouteView,
            meta: {
                title: '消息通知'
            },
            redirect: '/matters/news/toread',
            children: [
                {
                    path: '/matters/news/toread',
                    name: 'mattersNewsTo',
                    meta: {
                        title: '待读消息'
                    },
                    component: () => import('@/views/matters/message/toRead'),
                    icon: 'none',
                    children: []
                },
                {
                    path: '/matters/news/read',
                    name: 'mattersNewsRead',
                    meta: {
                        title: '已读消息'
                    },
                    component: () => import('@/views/matters/message/alreadyRead'),
                    icon: 'none'
                },
                {
                    path: '/matters/news/toread/detail',
                    name: 'messageToRDetail',
                    meta: {
                        title: '通知详情',
                        noTab: true,
                        parent: {
                            path: '/matters/news/toread',
                            title: '待读消息列表'
                        }
                    },
                    component: () => import('@/views/matters/message/detail'),
                    icon: 'none'
                },
                {
                    path: '/technical/dataManage/dailyDataManagss',
                    name: 'dailyDataManag',
                    hidden: true,
                    meta: {
                        title: '日常资料管理审批',
                        noTab: true
                    },
                    component: () => import('@/views/technical/dataManage/dailyDataManag/approval')
                },
                {
                    path: '/matters/news/read/detail',
                    name: 'messageRDetail',
                    meta: {
                        title: '通知详情',
                        noTab: true,
                        parent: {
                            path: '/matters/news/read',
                            title: '已读消息列表'
                        }
                    },
                    component: () => import('@/views/matters/message/detail'),
                    icon: 'none'
                }
            ]
        },
        {
            path: '/matters/peinma',
            name: 'peinma',
            component: RouteView,
            meta: {
                title: '个人信息管理'
            },
            redirect: '/matters/peinma/pim',
            children: [
                {
                    path: 'pim',
                    name: 'pim',
                    meta: {
                        title: '个人信息管理',
                        isUser: true,
                        // 作为和公司用户管理的区分
                        isPim: true
                    },
                    component: () => import('@/views/systemManage/menuPermissions/authManage/UpdateAuthManage')
                },
            ]
        }

    ]
}

